package com.yd.util;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import org.junit.Test;

public class Pchong
{
	
	public String getN()
	{
       String url="http://book.km.com/chapterlist/289128.html";
        try
		{
			Document doc=Jsoup.connect(url).get();
		Elements element=doc.getElementsByClass("bd");
		
		
		
		 System.out.println(element.size());
		
		} catch (IOException e)
		{
			e.printStackTrace();
		}
		return "";
	}
	@Test
	public void test(){
		this.getN();
		
	}
	
	
}
